﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using WmsApp.WmsService;

namespace WmsApp.Service
{
    public class VInStoreBillDtlAndHeadService : IEntityService<VInStoreBillDtlAndHead, VInStoreBillDtlAndHeadService>
    {

        #region IEntityService<InStoreBillDtl> Members

        public List<VInStoreBillDtlAndHead> GetEntityList()
        {
            var sc = Factory.WmsServiceFactory.GetServiceClient();
            List<VInStoreBillDtlAndHead> list = sc.GetVInStoreBillDtlAndHeadsByCondition(" 1=1 ");
            return list;
        }

        public List<VInStoreBillDtlAndHead> GetEntityList(string condition)
        {
            var sc = Factory.WmsServiceFactory.GetServiceClient();
            List<VInStoreBillDtlAndHead> list = sc.GetVInStoreBillDtlAndHeadsByCondition(condition);
            return list;
        }

        public void SaveEntityList(List<VInStoreBillDtlAndHead> list)
        {
            throw new NotFiniteNumberException();
        }

        public VInStoreBillDtlAndHead GetEntity(string key)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
